1547. Minimum Cost To Cut A Stick | Dp | Leetcode Daily Challenge